package touchtrack.model;

import touchtrack.model.artist.Artist;
import touchtrack.model.track.Track;

/**
 * World
 * 
 * Keeps track of all databases.
 * 
 * @author	MuMe09 team 6
 * 			http://mumetech.wordpress.com/
 */
public class World
{
	/**
	 * World constructor.
	 * Initializes new databases.
	 */
	public World()
	{
		this.artistDatabase = new Database<Artist>();
		this.trackDatabase = new Database<Track>();
	}
	
	/***************************************************************************
	 * 								Artist database
	 ***************************************************************************/
	
	private final Database<Artist> artistDatabase;
	
	/**
	 * Inspector for the artist database.
	 * 
	 * @return	this.artistDatabase
	 */
	public Database<Artist> getArtistDatabase()
	{
		return this.artistDatabase;
	}
	
	/***************************************************************************
	 * 								Track database
	 ***************************************************************************/
	
	private final Database<Track> trackDatabase;
	
	/**
	 * Inspector for the track database.
	 * 
	 * @return	this.trackDatabase
	 */
	public Database<Track> getTrackDatabase()
	{
		return this.trackDatabase;
	}
}